<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


<%@include file="cabecera.jsp" %>

<html>
<head>
<title>...:::Busqueda de Sala:::...</title>
</head>
<body>
<p><strong>Selecciona por:</strong>



<p> 
<form name="f2" action="SalaBusServlet" method="post" style="height: 84px; ">

<table width="360" border="0">
  <tr>
    <td>
      <label for="cmbSala"></label>
      <select name="cmbSala" id="cmbSala">
      <option>---Nombre Sala---</option>
        <option>Sala Rock 70s</option>
        <option>Sala Rock 80s</option>
        <option>Sala Rock 90s</option>
      </select>
   </td>
    <td>
      <label for="cmblocal"></label>
      <select name="cmblocal" id="cmblocal">
      <option>---Nombre Local---</option>
        <option>Sala Surco</option>
        <option>Sala Miraflores</option>
        <option>Sala San Isidro</option>
      </select>
    </td>
    <td>
      <label for="cmbcapacidad"></label>
      <select name="cmbcapacidad" id="cmbcapacidad">
      <option>---Capacidad---</option>
        <option>10</option>
        <option>12</option>
        <option>14</option>
      </select>
    </td>
  </tr>
</table>
<p> 

<button type="submit">
        <img src="imagenes/back_alt.png" alt="" style="height: 15px; "/> 
      Buscar</button>
<button type="reset">
        <img src="imagenes/delete.gif" alt="" style="height: 15px; "/> 
      Cancelar</button>


  </form>

<table width="752" border="1">
  <tr>
    <td>Nombre Sala</td>
    <td>Local</td>
    <td>Capacidad</td>
    <td>Costo por Hora</td>
    <td>Caracteristicas</td>
     
  </tr>

  <%@page import="java.util.*,  studio.modelo.Sala" %>
<%
Collection<Sala> arreglo = (ArrayList<Sala>)request.getAttribute("Salas");
if(arreglo != null) { 
int i = 1;
for(Sala x : arreglo) {
%>  
  <tr>
    <td><% out.print(x.getNombreSala()); %></td>
    <td><% out.print(x.getNombreLocal()); %></td>
    <td><% out.print(x.getCapacidad()); %></td>
    <td><% out.print(x.getCostoxHora()); %></td>
    <td><% out.print(x.getCaracteristicas()); %></td>
    
      </tr>
<% }  
  } %>
</table>
<p>
  <input name="btnEnvioReserva" type="submit" id="btnEnvioReserva" value="Ir a Reserva..." />
</p>
</body>

<%@include file="pie.jsp" %>   